﻿@using EpiInfoCloudMagpiBridge.Models
@model  EpiInfoCloudMagpiBridge.Models.MagpiAzureMappingHelper


@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Create</title>
</head>
<body>
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")


 @using (Html.BeginForm("Save", "MagpiAzureMapping", FormMethod.Post, Model))
 {
        @Html.AntiForgeryToken()

        <div class="form-horizontal">
            <h3>Add Registered Datasets</h3>
            <hr />
            <table>
                <tr height="20">
                    <td colspan="2"></td>
                </tr>
                @*<tr><td colspan="2"><button class="btn btn-primary">Add new</button> </td></tr>*@
                @*<tr><td><label  class="btn btn-primary">Add new</label> </td></tr>*@
                <tr height="20">
                    <td colspan="2"></td>
                </tr>
                <tr>

                    <td width="200">
                        <span>Survey Name: </span>
</td>
                    <td style="font-size:16px">
                        @Html.DropDownListFor(
                    x => x.DropDownCollection.SelectedItemId,
                    new SelectList(Model.DropDownCollection.Items, "SurveyID", "SurveyName"),
                    new { Name = "ddlSurveys", Class = "form-control" })

                    </td>
                </tr>
                <tr height="20">
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td width="200">
                        Mobile Service Table Name:
                        </td>
                    <td>
                     @Html.TextBoxFor(x => x.NewMapping.MobileServiceTableName, new { Name = "txtMobileServiceTableName", Class = "form-control" })
                    </td>
                </tr>
                <tr height="20">
                    <td width="20"></td>
                </tr>
                <tr><td><button class="btn btn-primary" submit="submit">Save </button></td></tr>
            </table>
        </div>
    }

    <div style="margin-top:20px">
        <br />
        <br />
        <br />
        @Html.ActionLink("Back to List", "Index")
    </div>
</body>
</html>
